
package com.yinhai.ta404.core.utils;

import com.yinhai.ta404.core.service.sequence.SequenceService;

public class UUIDUtils {
    public UUIDUtils() {
    }

    private static SequenceService sequenceService;
    public static String getUUID() {
        return getSequenceService().getStringSeq();
    }


    private static SequenceService getSequenceService(){
        if(sequenceService == null){
            synchronized (UUIDUtils.class){
                sequenceService = ServiceLocator.getService(SequenceService.class);
            }
        }
        return sequenceService;
    }
}
